<script setup lang='ts'>
import {inject} from 'vue'

const u = inject('user')

const change = inject('change')
change('老吴')
// u.name = '李四'

</script>
<template>
    <div>
        子组件
        {{ u }}
    </div>
</template>
<style>
    
</style>